﻿using System;
using System.Text;
using Petra.Gis.Geometry;
using Petra.Gis.Geometry.Support;
using Petra.Gis.DataServices;
using Petra.Gis.DataServices.Metadata;
using Petra.Gis.DataServices.GDO.Sqlserver;
using Petra.Gis.DataServices.SHP;


namespace testDataServices
{



  public class SHP
  {


    public static void testSHP()
    {



      ShpConnection c = new ShpConnection()
      {
        ConnectionString =
        @"Data Source=C:\temp\GRDS_LCR\geofond ; 
         CoordinateSystemAuthority=INGR ;
         CoordinateSystemCode = 49 ;
         CoordinateStorageUnits = metre ;
         TextEncoding = 1252"
      };

      c.Open();

      // prepare command
      ShpSelectCommand cmd = new ShpSelectCommand();
      cmd.Connection = c;
      // this first to get smooth performance
      cmd.CommandType = System.Data.CommandType.TableDirect;
      // set valid command now command
      cmd.CommandText = "lonbpolcr";


      ShpDbReader rr = cmd.ExecuteReader();

      rr.Read();
      rr.Read();

    }



  }
}
